package com.lgj.tlias.service.impl;

import com.lgj.tlias.domain.dto.EmpDTO;
import com.lgj.tlias.domain.pojo.Emp;
import com.lgj.tlias.mapper.EmpMapper;
import com.lgj.tlias.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    public EmpMapper empMapper;
    @Override
    public Emp login(EmpDTO empDTO) {
        return empMapper.getByNameAndPwd(empDTO.getUsername(),empDTO.getPassword());
    }
}
